// pages/index/index.js


Page({data: {
        imgUrls: [
            'test.png',
            'test1.png',
            'test.png'
        ],
        indicatorDots: true,
        vertical: false,
        autoplay: true,
        interval: 3000,
        duration: 1200,
        iconArray: [
            {
                "iconUrl": 'd.png',
                "iconText": 'DOTA2'
            },
            {
                "iconUrl": '电.png',
                "iconText": '电子科技大学'
            },
            {
                "iconUrl": 'l.png',
                "iconText": 'LOL'
            },

             {
                "iconUrl": 'pls.png',
                "iconText": '创建部落'
            }
        ]
} ,
     bindViewTap: function() {
        wx.navigateTo({
            url: '../logs/logs'
        })
    },
    onLoad:function(options){
    var that = this;
    for(var i = 0; i < 30; i++) {
        that.data.iconArray.push({
             "iconUrl": 'l.png',
            "iconText": 'LOL'
        });
    }
  },
  scrollLoading:function(){ //滚动加载
    // this.fetchConferenceData();
  },
  onPullDownRefresh:function(){ //下拉刷新
    this.setData({
    //   page:0,
    //   activitylist:[]
    })
    // this.fetchConferenceData();
    // this.fetchSortData();
    setTimeout(()=>{
      wx.stopPullDownRefresh()
    },1000)
    console.log('here')
  }
})